<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>详细信息</title>
<script>
  V_backObj=new Object();//一个用户返回信息的对象
  V_backObj.value="";
  V_backObj.cancel=true;//返回状态为取消
/**
*页面装载后触发,接收参数V_paramObj对象,完成一些初始化工作
*/
function init(){
  var V_paramObj=window.dialogArguments;
  var V_value=V_paramObj.value;//字段值
  var V_field=V_paramObj.field;//字段名
  var V_isReadOnly=V_paramObj.isReadOnly;
  if(V_isReadOnly==true) document.all.btn_qd.disabled=true;
  span_bt.innerHTML="<strong>"+V_field+"</strong>";
  document.all.txt_xxxx.innerText=V_value;
  window.returnValue=V_backObj;//设置返回对象V_backObj
}

/**
*由"确定"按钮触发,设置返回值及返回状态
*/
function confirm(){
  V_backObj.value=document.all.txt_xxxx.innerText;
  V_backObj.cancel=false;//返回状态为确定
  window.close();
}

/**
*由"取消"按钮触发,设置返回值为"",返回状态
*/
function callOff(){
  V_backObj.value="";
  V_backObj.cancel=true;//返回状态为取消
  window.close();
}
</script>
</head>

<body bgcolor="#eeeeee" onload="init()" >

<table border="0" cellpadding="0" cellspacing="0" width="62%" height="123">
  <tr>
    <td width="100%" height="22" align="center">
      <span id=span_bt></span>
    </td>
  </tr>
  <tr>
    <td width="100%" height="70" align="center" valign="middle">
      <textarea rows="10" name="txt_xxxx" cols="53"></textarea>
    </td>
  </tr>
  <tr>
    <td width="100%" valign="bottom" height="31">
      <p align="center"><input type="button" value="确  定" name="btn_qd" onclick="confirm()">&nbsp; 
      <input type="button" value="取  消" name="btn_qx" onclick="callOff()"></p>

    </td>
  </tr>
</table>

</body>

</html>
